package com.wei.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.client.RestTemplate;

@Service
public class HiService {

    @Autowired
    private RestTemplate restTemplate;

    public String sayHi(String name) {
        String response = restTemplate.getForObject("http://service-hi/hi", String.class);
        response = name + "/" + response;
        return response;
    }
}
